package com.study_online.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 张天霸
 *
 * 主贴类
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("forum_fatherpost")
public class ForumFatherPost extends Model<ForumFatherPost> {

    @TableId(value = "fatherpostId",type = IdType.AUTO)
    private Integer fatherpostId;

    private String fatherpostTitle;
    private String fatherpostContent;
    private Integer uid;
    private Integer fatherpostLike;
    private Integer fatherpostDislike;
    private Integer fatherpostCollect;
    private Integer postTypeId;

    @TableField("addTime")
    private String addTime;
    @TableField("updateTime")
    private String updateTime;
}